package com.cn.boot.student.service.student;

import com.cn.boot.student.entity.WordCollectRelationEntity;
import com.cn.boot.student.util.CommonResult;

/**
 * 服务接口层
 */
public interface IWordCollectService {
    /**
     * 单词收藏
     * @param wordCollectRelationEntity
     * @return
     */
    CommonResult collect(WordCollectRelationEntity wordCollectRelationEntity);
    /**
     * 取消收藏
     * @param wordCollectRelationEntity
     * @return
     */
    CommonResult delCollect(WordCollectRelationEntity wordCollectRelationEntity);

    /***
     * 查询单词是否已被收藏
     * @param wordCollectRelationEntity
     * @return
     */
    CommonResult isCollected(WordCollectRelationEntity wordCollectRelationEntity);
}
